package com.alan.search.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author 孙志鹏
 * @since 2021/10/28 11:52 上午
 */
@Data
public class BaseResultVO implements Serializable {
    private static final long serialVersionUID = -7069686057980373574L;

    public static final Integer SUCCESS = 0;

    public static final Integer FAIL = -1;

    public static final String DEFAULT_SUCCESS_MSG = "成功";

    public static final String DEFAULT_FAIL_MSG = "失败";

    @ApiModelProperty(value = "返回标记：成功标记: 0，失败标记: -1", example = "0")
    private Integer code;

    @ApiModelProperty(value = "返回信息", example = "成功")
    private String msg;

    @ApiModelProperty(value = "请求api", example = "/api/test")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String requestUri;
}
